package day07;

import org.w3c.dom.ls.LSOutput;

//此类用于验证封装的必要性
public class Test02 {
    public static void main(String[] args) {
        User u = new User();
        System.out.println(u.name);
        u.name = "李逵";
        System.out.println(u.name);
    }

}

class User{
    String name;
    double money;
    public double queryMoney(){
        return money;
    }
}